package com.wcity.manage.dao.model;

import com.wcity.manage.dao.dal.model.AbstractModel;

import java.util.ArrayList;
import java.util.List;

/**
 * 后台权限实体类
 *
 * @author dy
 */
public class Act extends AbstractModel {

    private static final long serialVersionUID = 8335168261135445719L;

    private int id;
    private int authId;     // 权限识别id
    private String actName; // 权限名称
    private String action;  // 权限对应控制器
    private String note;    // 备注
    private boolean isNav;  // 是否显示在导航栏(0不显示, 1显示)
    private boolean isTop;  // 是否显示在顶部功能栏(0不显示, 1显示)
    private int parentId;   // 母类id, <FK>tc_manage_act.id
    private int sort;       // 排序

    private Act parent; // 父权限
    private List<Act> children = new ArrayList<Act>(); // 子权限

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getAuthId() {
        return authId;
    }

    public void setAuthId(int authId) {
        this.authId = authId;
    }

    public String getActName() {
        return actName;
    }

    public void setActName(String actName) {
        this.actName = actName;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public boolean getIsNav() {
        return isNav;
    }

    public void setIsNav(boolean isNav) {
        this.isNav = isNav;
    }

    public boolean getIsTop() {
        return isTop;
    }

    public void setIsTop(boolean isTop) {
        this.isTop = isTop;
    }

    public int getParentId() {
        return parentId;
    }

    public void setParentId(int parentId) {
        this.parentId = parentId;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public Act getParent() {
        return parent;
    }

    public void setParent(Act parent) {
        this.parent = parent;
    }

    public List<Act> getChildren() {
        return children;
    }

    public void setChildren(List<Act> children) {
        this.children = children;
    }

}
